<?php

namespace App\Http\Requests\App;

use App\Http\Requests\ApiRequest;

/**
 * @property int store_id
 * @property int staff_id
 * @property string|null type - 为 "png" 直接返回图片
 */
class UserLoginQrCodeRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'store_id' => 'nullable|int|min:1',
            'staff_id' => 'nullable|int|min:1',
        ];
    }

    /**
     * @return array
     */
//    public function messages()
//    {
//        return [
//            'store_id.*' => '店铺的id必须是数值',
//            'staff_id.*' => '店员的id必须是数值',
//        ];
//    }
}
